package com.lichuang.dedao.curriculum.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaosong
 * @since 2019-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("curriculum_chapter")
@ApiModel(value = "CurriculumChapter对象", description = "")
public class CurriculumChapter implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "章id")
    private Integer id;

    @ApiModelProperty(value = "章名字")
    private String name;

    @ApiModelProperty(value = "总讲数")
    private Integer total;

    @ApiModelProperty(value = "描述")
    private String describes;

    @ApiModelProperty(value = "课程id")
    private Integer curriculumId;

    @TableField(exist = false)
    private List<CurriculumSection> curriculumSections;

    @TableField(exist = false)
    private Integer alreadyCount;
}
